<!-- 
 - AdministratorHomepage.php
 - v1.0
 - 2/10/2011
 - 
 - This file presents the user interface for the administrator. 
 -->
<?php
	require 'libraries/ViewAnalysisLib.php';
	require 'libraries/UserLibrary.php';
	session_start();
	checkSessionVariable("administrator", "Index.php", NULL);
?>
<html>
	<head>
		<title>Administrator</title>
		<script type="text/javascript" src="scripts/validateAnalyst.js"></script>
		<link rel="stylesheet" type="text/css" href="analyst.css"/>
	</head>
	<body>
		<p align="right">
			Hi, <?php echo $_SESSION["administrator"];?> | <a href="Logout.php">Log-out</a>
		</p>
		<input type="button" value="Add New User" onClick='document.location.href = "CreateAccount.php"'>
		<input type="button" value="Create New Analysis" onClick='document.location.href = "CreateAnalysis.php"'>
		<input type="button" value="View Cost" onClick='document.location.href = "ViewAnalysisCosts.php"'>
		<table id="analysisTable" border="0" width="100%">
			<tr>
				<th>CASL Number</th>
				<th>Analysis Required</th>
				<th>Date of Analysis</th>
			</tr>
			
		<?php
	//	DisplayAllAnalysis("casl","localhost","login","login");
		?>
		</table>
	</body>
</html>
